255 IF CH$<>"1" AND CH$<>"2" AND CH$<>"9" THEN GOSUB 42300
260 ON VAL(CH$) GOTO 1000,3000,2000,5000,4000,7000,10000,8000,42500
270 GOTO 250
999 '********** LOAD A FILE **********
1000 CLS:BOX$="01010378":GOSUB 41200:TITLE.LINE$="DO YOU WANT TO LOAD A NEW FILE? (Y/N)":GOSUB 40100:LOCATE 2,THISLOC-1:PRINT TITLE.LINE$:GOSUB 41010
1010 LOCATE 2,2:PRINT WIPE$;:LOCATE 2,15:PRINT "DRIVE ON WHICH FILES ARE STORED (A, B, C OR D)";:GOSUB 42200:CLS:PRINT"THESE ARE YOUR CURRENT FILES: ":PRINT:DR$=DR$+":":FILES DR$+"*.PLY"
1020 BOX$="22012478":GOSUB 41200:LOCATE 23,5:LINE INPUT;"NAME OF FILE TO LOAD (HIT <RETURN> TO CANCEL THIS FUNCTION): ";NF$:IF NF$="" THEN 200 ELSE NF$=DR$+NF$
1030 IF LEN(NF$)>10 OR INSTR(NF$,".")>0 THEN PRINT CHR$(7):GOTO 3020
2080 LOCATE 10,5:PRINT "DO YOU WANT "+FINIT$+" "+EN$+" ON THE "+TEAM$(TM)+" (Y/N)";
2090 GOSUB 41300
2100 IF YN$<>"Y" THEN 2400
2110 CLS:TITLE.LINE$="HERE ARE THE CURRENT STATS":GOSUB 40100:BOX$="01010678":GOSUB 41200:LOCATE 3,1:PRINT MID.MENU$;:LOCATE 2,THISLOC-1:PRINT TITLE.LINE$:LOCATE 4,2:PRINT DISPLAY.LINE$;
2120 DISROW=5:GOSUB 30200
2130 GOSUB 30400
2140 AB=AB+THIS.AB:HIT=HIT+THIS.HIT:IF HIT>0 THEN AVG=HIT/AB ELSE AVG=0
2150 RBI=RBI+THIS.RBI:HR=HR+THIS.HR:BB=BB+THIS.BB:IF HIT+BB>0 THEN OBP=(HIT+BB)/(AB+BB) ELSE OBP=0
2230 ZIP$="19012478":GOSUB 52000:BOX$="22012478":GOSUB 41200:TITLE.LINE$="UPDATE ANOTHER PLAYER? (Y/N)":GOSUB 40100:LOCATE 23,THISLOC-1:PRINT TITLE.LINE$;
2240 GOSUB 41300:IF YN$<>"Y" THEN GOSUB 32000:GOTO 200
2250 CLS:GOTO 2010
2400 NEXT K
2410 CLS:LOCATE 5,5:PRINT "I CAN'T FIND "+FINIT$+" "+LASNAME$+" IN MY RECORDS"
2420 LOCATE 7,5:PRINT "DO YOU WANT TO TRY AGAIN? (Y/N)":GOSUB 41300
2430 IF YN$<>"Y" THEN 200 ELSE CLS:GOTO 2010
2999 '********** CREATE A NEW FILE **********
3000 CLS:BOX$="01010378":GOSUB 41200:TITLE.LINE$="DO YOU WANT TO CREATE A NEW FILE? (Y/N)":GOSUB 40100:LOCATE 2,THISLOC-1:PRINT TITLE.LINE$:GOSUB 41010
3010 LOCATE 2,2:PRINT WIPE$;:LOCATE 2,15:PRINT "DRIVE FOR THE NEW FILE (A, B, C or D): ";:GOSUB 42200:DR$=DR$+":":CLS:PRINT"THESE ARE YOUR CURRENT FILES: ":PRINT:FILES DR$
3020 BOX$="22012478":GOSUB 41200:LOCATE 23,2:LINE INPUT;"NAME OF NEW FILE (8 CHARS MAX): ";NF$
3030 IF LEN(NF$)>8 THEN PRINT CHR$(7):GOTO 3020
3040 NF$=DR$+NF$:GOTO 200
3999 '********** ADD A PLAYER **********
4000 GOSUB 40300
4010 TITLE.LINE$="ADD PLAYER NO"+STR$(NUMBER.OF.PLAYER+1):GOSUB 40100:LOCATE 3,THISLOC-2:PRINT TITLE.LINE$:IF FIRST.FLAG=0 THEN GOSUB 41000
4020 IF FIRST.FLAG=0 THEN GOSUB 41400
4030 LOCATE 9,5:INPUT;"LAST NAME (14 CHARS MAX): ";LASNAME$:IF LEN(LASNAME$)>14 THEN PRINT CHR$(7):ZIP$="08051070":GOSUB 52000:GOTO 4030
7320 TITLE.LINE$="CURRENT STATS FOR "+FINIT$+" "+LASNAME$:GOSUB 42000:LPRINT:GOSUB 42100:LPRINT:LPRINT:LPRINT:N%=23:GOSUB 41500:TITLE.LINE$="DO YOU WANT A NEW PAGE? (Y/N)":GOSUB 40100:LOCATE 23,THISLOC-1:PRINT TITLE.LINE$;:GOSUB 41300
8000 CLS:GOSUB 40000:TITLE.LINE$="SORT YOUR STATS":GOSUB 40100:LOCATE 3,THISLOC-1:PRINT TITLE.LINE$;
8020 LOCATE 9,30:PRINT "1. BY BATTING AVERAGE";:LOCATE 10,30:PRINT "2. BY HITS";:LOCATE 11,30:PRINT "3. BY HOME RUNS";:LOCATE 12,30:PRINT "4. BY RBI'S";:LOCATE 13,30:PRINT "5. BY RUNS SCORED";:LOCATE 14,30:PRINT "6. BY ON-BASE PCT."
8040 CH$=INKEY$:IF CH$="" THEN 8040 ELSE IF CH$="7" THEN 200
8050 IF VAL(CH$)< 1 OR VAL(CH$)>7 THEN 8040
8060 IF VAL(CH$)=7 THEN 200
8090 LOCATE 22,5:PRINT "ONE MOMENT, PLEASE, WHILE I SORT THE STATS";
8100 F$=NF$+".PLY":OPEN F$ AS 1 LEN=47:FIELD 1, 14 AS EN$, 1 AS FI$, 2 AS TM$, 2 AS AB$, 2 AS HIT$, 4 AS AVG$, 2 AS RBI$, 2 AS HR$, 4 AS OBP$, 2 AS RN$, 2 AS ER$, 2 AS BB$, 2 AS SO$, 2 AS B1$, 2 AS B2$, 2 AS B3$
8140 IF CH$="1" THEN CURRENT.INDEX$(VB)=MID$(STR$(AVG*1000),2)+"/"+STR$(VB):GOTO 8200
8150 IF CH$="6" THEN CURRENT.INDEX$(VB)=MID$(STR$(OBP*1000),2)+"/"+STR$(VB):GOTO 8200
8160 IF CH$="3" THEN CURRENT.INDEX$(VB)=MID$(STR$(HR),2)+"/"+STR$(VB):GOTO 8195
8170 IF CH$="4" THEN CURRENT.INDEX$(VB)=MID$(STR$(RBI),2)+"/"+STR$(VB):GOTO 8195
8180 IF CH$="5" THEN CURRENT.INDEX$(VB)=MID$(STR$(RN),2)+"/"+STR$(VB)
8190 IF CH$="2" THEN CURRENT.INDEX$(VB)=MID$(STR$(HIT),2)+"/"+STR$(VB)
8195 VCI=VAL(CURRENT.INDEX$(VB)):IF VCI<10 THEN CURRENT.INDEX$(VB)="00"+CURRENT.INDEX$(VB) ELSE IF VCI>9 AND VCI<100 THEN CURRENT.INDEX$(VB)="0"+CURRENT.INDEX$(VB)
8200 NEXT VB:CLOSE #1:GOSUB 24100
8205 IF STARTING.SORT=0 THEN STARTING.SORT=1:RETURN
8210 N%=22:GOSUB 41500:LOCATE 22,5:PRINT "SORT COMPLETED. ";:INPUT "HIT <RETURN> FOR MAIN MENU";PE:GOTO 200
10020 LOCATE 9,30:PRINT "1. LIST ALL TEAMS";:LOCATE 11,30:PRINT "2. TEAM WITH PLAYERS";:LOCATE 13,30:PRINT "3. ALL TEAMS WITH PLAYERS";:LOCATE 15,30:PRINT "4. RETURN TO MENU";:LOCATE 17,30:PRINT "YOUR CHOICE _";
10220 FOR N=1 TO 12:IF LEFT$(TEAM$(N),1)="-" THEN 10280
10230 LOCATE N+4,2:PRINT LEFT$(TEAM$(N),17);:PRINT TAB(19) USING FR2$;N;
10240 PRINT TAB(23) USING FR3$;TAT.BATS(N);:PRINT TAB(27) USING FR3$;THITS(N);:PRINT TAB(31) USING " .###";TAVG(N);:PRINT TAB(38) USING FR2$;THR(N);
10250 PRINT TAB(40) USING " .###";TOBP(N);:PRINT TAB(46) USING FR3$;TRUNS(N);:PRINT TAB(50) USING FR3$;TRBI(N);
10260 PRINT TAB(54) USING FR3$;TERRORS(N);:PRINT TAB(58) USING FR3$;TBB(N);:PRINT TAB(62) USING FR3$;TK(N);:PRINT TAB(66) USING FR3$;T1B(N);:PRINT TAB(70) USING FR3$;T2B(N);:PRINT TAB(74) USING FR3$;T3B(N);
10320 FOR N=1 TO 12:IF LEFT$(TEAM$(N),1)="-" THEN 10280
10330 LPRINT TAB(2) LEFT$(TEAM$(N),17);:LPRINT TAB(19) USING FR2$;N;
10340 LPRINT TAB(23) USING FR3$;TAT.BATS(N);:LPRINT TAB(27) USING FR3$;THITS(N);:LPRINT TAB(31) USING " .###";TAVG(N);:LPRINT TAB(38) USING FR2$;THR(N);
10350 LPRINT TAB(40) USING " .###";TOBP(N);:LPRINT TAB(46) USING FR3$;TRUNS(N);:LPRINT TAB(50) USING FR3$;TRBI(N);
10360 LPRINT TAB(54) USING FR3$;TERRORS(N);:LPRINT TAB(58) USING FR3$;TBB(N);:LPRINT TAB(62) USING FR3$;TK(N);:LPRINT TAB(66) USING FR3$;T1B(N);:LPRINT TAB(70) USING FR3$;T2B(N);:LPRINT TAB(74) USING FR3$;T3B(N)
10370 NEXT N
10380 LPRINT CHR$(12):GOTO 10000
10499 '********** DISPLAY TEAM AND PLAYERS **********
10500 GOSUB 31200:CLS:GOSUB 41400:LOCATE 10,5:INPUT "ENTER THE NUMBER OF THE TEAM YOU WANT (1-12)";TEAM.WANTED:IF TEAM.WANTED < 1 OR TEAM.WANTED > 12 THEN SOUND 200,5:LOCATE 10,5:PRINT STRING$(70,32):GOTO 10500
10505 IF SP$="P" THEN 10700
10510 CLS:GOSUB 40200:TITLE.LINE$="STATS FOR PLAYERS ON THE "+TEAM$(TEAM.WANTED):GOSUB 40100:LOCATE 2,THISLOC:PRINT TITLE.LINE$;:LOCATE 4,2:PRINT TEAM.LINE$;:LOCATE 5,1:PRINT MID.MENU$;
10520 DISROW=6
10530 F$=NF$+".PLY":OPEN F$ AS 1 LEN=47:FIELD 1, 14 AS EN$, 1 AS FI$, 2 AS TM$, 2 AS AB$, 2 AS HIT$, 4 AS AVG$, 2 AS RBI$, 2 AS HR$, 4 AS OBP$, 2 AS RN$, 2 AS ER$, 2 AS BB$, 2 AS SO$, 2 AS B1$, 2 AS B2$, 2 AS B3$
10570 IF AVG>.9990001 THEN FR5$="#.###" ELSE FR5$=" .###"
10580 IF TM=TEAM.WANTED THEN GOSUB 30200:DISROW=DISROW+1:IF DISROW>18 THEN TEAM.FLAG=1:GOSUB 43600:TEAM.FLAG=0:DISROW=6:IF YN$<>"Y" THEN 200 ELSE ZIP$="06022076":GOSUB 52000:LOCATE 23,2:PRINT WIPE$;
10590 NEXT K:CLOSE#1
10600 LOCATE 18,2:PRINT "TOTALS";
10610 PRINT TAB(23) USING FR3$;TAT.BATS(TEAM.WANTED);:PRINT TAB(27) USING FR3$;THITS(TEAM.WANTED);:PRINT TAB(31) USING " .###";TAVG(TEAM.WANTED);:PRINT TAB(38) USING FR2$;THR(TEAM.WANTED);
10620 PRINT TAB(40) USING " .###";TOBP(TEAM.WANTED);:PRINT TAB(46) USING FR3$;TRUNS(TEAM.WANTED);:PRINT TAB(50) USING FR3$;TRBI(TEAM.WANTED);
10630 PRINT TAB(54) USING FR3$;TERRORS(TEAM.WANTED);:PRINT TAB(58) USING FR3$;TBB(TEAM.WANTED);:PRINT TAB(62) USING FR3$;TK(TEAM.WANTED);:PRINT TAB(66) USING FR3$;T1B(TEAM.WANTED);
10640 PRINT TAB(70) USING FR3$;T2B(TEAM.WANTED);:PRINT TAB(74) USING FR3$;T3B(TEAM.WANTED);
10699 '********** PRINT TEAM AND PLAYERS **********
10700 CLS:GOSUB 31320
10710 LPRINT:LPRINT:LPRINT:LPRINT HEADER.LINE$:TITLE.LINE$="STATS FOR THE "+TEAM$(TEAM.WANTED)+DATE$:GOSUB 40100:LPRINT TAB(THISLOC -1) TITLE.LINE$:LPRINT HEADER.LINE$:LPRINT TAB(2) TEAM.LINE$:LPRINT HEADER.LINE$:LPRINT
10730 F$=NF$+".PLY":OPEN F$ AS 1 LEN=47:FIELD 1, 14 AS EN$, 1 AS FI$, 2 AS TM$, 2 AS AB$, 2 AS HIT$, 4 AS AVG$, 2 AS RBI$, 2 AS HR$, 4 AS OBP$, 2 AS RN$, 2 AS ER$, 2 AS BB$, 2 AS SO$, 2 AS B1$, 2 AS B2$, 2 AS B3$
10770 IF AVG>.9990001 THEN FR5$="#.###" ELSE FR5$=" .###"
10780 IF TM=TEAM.WANTED THEN GOSUB 42100
10790 NEXT K:CLOSE#1:LPRINT:LPRINT
10800 LPRINT TAB(2) "TOTALS";
10810 LPRINT TAB(23) USING FR3$;TAT.BATS(TEAM.WANTED);:LPRINT TAB(27) USING FR3$;THITS(TEAM.WANTED);:LPRINT TAB(31) USING " .###";TAVG(TEAM.WANTED);:LPRINT TAB(38) USING FR2$;THR(TEAM.WANTED);
10820 LPRINT TAB(40) USING " .###";TOBP(TEAM.WANTED);:LPRINT TAB(46) USING FR3$;TRUNS(TEAM.WANTED);:LPRINT TAB(50) USING FR3$;TRBI(TEAM.WANTED);
10830 LPRINT TAB(54) USING FR3$;TERRORS(TEAM.WANTED);:LPRINT TAB(58) USING FR3$;TBB(TEAM.WANTED);:LPRINT TAB(62) USING FR3$;TK(TEAM.WANTED);:LPRINT TAB(66) USING FR3$;T1B(TEAM.WANTED);
10840 LPRINT TAB(70) USING FR3$;T2B(TEAM.WANTED);:LPRINT TAB(74) USING FR3$;T3B(TEAM.WANTED)
10850 LPRINT CHR$(12):IF ALLFLAG=1 THEN RETURN ELSE LOCATE 22,2:PRINT WIPE$;
10900 CLS:TITLE.LINE$="PRINT ALL TEAMS WITH PLAYERS. ARE YOU SURE (Y/N)":GOSUB 40100:LOCATE 22,THISLOC-1:PRINT TITLE.LINE$;:GOSUB 41300:IF YN$<>"Y" THEN 10000
10910 LOCATE 22,2:PRINT WIPE$;:GOSUB 31320
10920 ALLFLAG=1
10930 LPRINT CHR$(12):FOR TEAM.WANTED=1 TO 12
10940 IF LEFT$(TEAM$(TEAM.WANTED),1)="-" THEN 10000
10950 GOSUB 10710
10960 NEXT TEAM.WANTED
10970 GOTO 10000
19999 '********** RANDOM PLAYER GENERATOR **********
24000 N%=NUMBER.OF.PLAYER:FOR Q=1 TO NUMBER.OF.PLAYER:AA$(Q)=PLAYER.INDEX$(Q):NEXT
24050 DEF SEG: CALL LSORT(AA$(1),N%)
24060 FOR Q=1 TO NUMBER.OF.PLAYER:PLAYER.INDEX$(Q)=AA$(Q):NEXT:RETURN
24099 '********** SORT CURRENT INDEX **********
24100 N%=NUMBER.OF.PLAYER:FOR Q=1 TO NUMBER.OF.PLAYER:AA$(Q)=CURRENT.INDEX$(Q):NEXT
24150 DEF SEG: CALL LSORT(AA$(1),N%)
24160 FOR Q=1 TO NUMBER.OF.PLAYER:CURRENT.INDEX$(Q)=AA$(Q):NEXT:RETURN
24399 '********** SWAP CURRENT.INDEX FOR PLAYER.INDEX **********
24400 FOR J=1 TO NUMBER.OF.PLAYER:SWAP PLAYER.INDEX$(J),CURRENT.INDEX$(J):NEXT:SWFLAG=1:RETURN
24499 '********** RETURN PLAYER AND CURRENT INDEXES TO NORMAL **********
24500 RETURN:FOR J=1 TO NUMBER.OF.PLAYER:SWAP PLAYER.INDEX$(J),CURRENT.INDEX$(J):NEXT:SWFLAG=0:RETURN
24999 '********** POKE IN MLSORT PROGRAM **********
25000 CLS
25010 DEF SEG
25020 CHECKSUM = 0
25030 ADDRESS = &HFF00
25040 READ MLDATA
25050 WHILE MLDATA <> -1
25060 POKE ADDRESS,MLDATA
25070 CHECKSUM = CHECKSUM + MLDATA
25080 ADDRESS = ADDRESS + 1
25090 READ MLDATA
25100 WEND
25110 RETURN
28000 FOR THIS.NUMBER=1 TO NUMBER.OF.PLAYER
28010 GOSUB 31000:RBI=INT(HIT/3)
28020 GOSUB 30000:PUT #1, THIS.NUMBER:CLOSE #1
28030 TRBI(TM)=TRBI(TM)+RBI
28040 NEXT
28050 GOSUB 32000
28060 PRINT "DONE":STOP
29999 '********** OPEN FILE AND STORE CURRENT PLAYER STATS **********
30000 F$=NF$+".PLY":OPEN F$ AS #1 LEN=47:FIELD 1, 14 AS EN$, 1 AS FI$, 2 AS TM$, 2 AS AB$, 2 AS HIT$, 4 AS AVG$, 2 AS HR$, 2 AS RBI$, 4 AS OBP$, 2 AS RN$, 2 AS ER$, 2 AS BB$, 2 AS SO$, 2 AS B1$, 2 AS B2$, 2 AS B3$
30199 '********** DISPLAY CURRENT STATS LINE **********
30200 LOCATE DISROW,2:PRINT EN$+" "+FINIT$;:PRINT TAB(19) USING FR2$;TM;:PRINT TAB(23) USING FR3$;AB;:PRINT TAB(27) USING FR3$;HIT;:PRINT TAB(31) USING FR5$;AVG;:PRINT TAB(38) USING FR2$;HR;
30210 PRINT TAB(40) USING FR5$;OBP;:PRINT TAB(46) USING FR3$;RN;:PRINT TAB(50) USING FR3$;RBI;
30220 PRINT TAB(54) USING FR3$;ERZ;:PRINT TAB(58) USING FR3$;BB;:PRINT TAB(62) USING FR3$;SO;:PRINT TAB(66) USING FR3$;B1;:PRINT TAB(70) USING FR3$;B2;:PRINT TAB(74) USING FR3$;B3;
30230 RETURN
30399 '********** ENTER PLAYER STATS **********
30400 TITLE.LINE$="LET'S ENTER STATS FOR THE LATEST GAME":GOSUB 40100:LOCATE 8,THISLOC-1:PRINT TITLE.LINE$;
30670 LOCATE 10,5:PRINT "DO YOU WANT "+FIT$+" "+EN$+" ON THE "+TEAM$(TM)+" (Y/N)";
30680 GOSUB 41300
30690 IF YN$<>"Y" THEN 30730
30700 CLS:TITLE.LINE$="HERE ARE THE CURRENT STATS":GOSUB 40100:BOX$="01010678":GOSUB 41200:LOCATE 3,1:PRINT MID.MENU$;:LOCATE 2,THISLOC-1:PRINT TITLE.LINE$:LOCATE 4,2:PRINT DISPLAY.LINE$
30999 '********** OPEN FILE AND GET CURRENT PLAYER STATS **********
31000 F$=NF$+".PLY":OPEN F$ AS 1 LEN=47:FIELD 1, 14 AS EN$, 1 AS FI$, 2 AS TM$, 2 AS AB$, 2 AS HIT$, 4 AS AVG$, 2 AS RBI$, 2 AS HR$, 4 AS OBP$, 2 AS RN$, 2 AS ER$, 2 AS BB$, 2 AS SO$, 2 AS B1$, 2 AS B2$, 2 AS B3$
42100 LPRINT TAB(2) EN$+" "+FINIT$;:LPRINT TAB(19) USING FR2$;TM;:LPRINT TAB(23) USING FR3$;AB;:LPRINT TAB(27) USING FR3$;HIT;:LPRINT TAB(31) USING FR5$;AVG;:LPRINT TAB(38) USING FR2$;HR;
42110 LPRINT TAB(40) USING FR5$;OBP;:LPRINT TAB(46) USING FR3$;RN;:LPRINT TAB(50) USING FR3$;RBI;:LPRINT TAB(54) USING FR3$;ERZ;:LPRINT TAB(58) USING FR3$;BB;:LPRINT TAB(62) USING FR3$;SO;:LPRINT TAB(66) USING FR3$;B1;
42120 LPRINT TAB(70) USING FR3$;B2;:LPRINT TAB(74) USING FR3$;B3
42130 RETURN
42199 '********** DRIVE SELECTION **********
42200 DR$=INKEY$:IF DR$="" THEN 42200
42210 IF INSTR("abcdABCD",DR$)=0 THEN 42200
42220 RETURN
42299 '********** ESTABLISH THAT A FILE HAS BEEN CREATED **********
42300 IF NF$<>"" THEN RETURN
42310 CLS:TITLE.LINE$="YOU HAVE NOT LOADED OR CREATED A FILE YET. HIT <RETURN> TO CONTINUE":GOSUB 40100:LOCATE 12,THISLOC-1:PRINT TITLE.LINE$;:LINE INPUT PE$:GOTO 200
42499 '********** DO YOU WANT TO QUIT? **********
42500 TITLE.LINE$="ARE YOU SURE YOU WANT TO QUIT? (Y/N)"::GOSUB 40100:CLS:LOCATE 12,THISLOC-1:PRINT TITLE.LINE$;:GOSUB 41300:IF YN$<>"Y" THEN 200
42510 TITLE.LINE$="THANK YOU FOR USING BASEBALL STATKEEPER!":GOSUB 40100:LOCATE 14,THISLOC-1:PRINT TITLE.LINE$:END
42599 '********** CHECK FOR MAXIMUM NUMBER OF TEAMS **********
42600 IF CURRENT.TEAM < 12 THEN CLS:RETURN
42610 TITLE.LINE$="YOU HAVE ALLOCATED ALL 12 TEAMS. HIT <RETURN> TO CONTINUE. ":GOSUB 40100:CLS:LOCATE 12,THISLOC-1:PRINT TITLE.LINE$;:LINE INPUT PE$:GOTO 200
43000 RETURN
43499 '********** DISPLAY ALL PLAYERS ON SCREEN **********
43500 CLS:GOSUB 40200:LOCATE 2,2:PRINT DISPLAY.LINE$;:DISROW=4:IF CP$="C" THEN START.SEARCH=NUMBER.OF.PLAYER:FINISH.SEARCH=1:SEARCH.INCREMENT=-1
43505 IF CP$="P" THEN START.SEARCH=1:FINISH.SEARCH=NUMBER.OF.PLAYER:SEARCH.INCREMENT=1
43510 DISROW=4:FOR K=START.SEARCH TO FINISH.SEARCH STEP SEARCH.INCREMENT
43520 IF CP$="C" THEN ENTRY.LOC=INSTR(CURRENT.INDEX$(K),"/")+2:THIS.NUMBER=VAL(MID$(CURRENT.INDEX$(K),ENTRY.LOC))
43525 IF CP$="P" THEN ENTRY.LOC=INSTR(PLAYER.INDEX$(K),"/")+2:THIS.NUMBER=VAL(MID$(PLAYER.INDEX$(K),ENTRY.LOC))
43530 GOSUB 31000 ' GET THE ENTRY
43540 GOSUB 30200:DISROW=DISROW+1 ' DISPLAY THE ENTRY AND INCREMENT ROW
43550 IF DISROW = 20 THEN GOSUB 43600
43560 NEXT K
43570 LOCATE 23,2:PRINT WIPE$;:TITLE.LINE$="THAT'S ALL, FOLKS! MORE REPORTS? (Y/N)":GOSUB 40100:LOCATE 23,THISLOC-1:PRINT TITLE.LINE$;:GOSUB 41300
43580 IF YN$="Y" THEN 7000 ELSE 200
43600 LOCATE 23,2:PRINT WIPE$:TITLE.LINE$="DO YOU WANT TO CONTINUE? (Y/N)":GOSUB 40100:LOCATE 23,THISLOC-1:PRINT TITLE.LINE$:GOSUB 41300:IF TEAM.FLAG=1 THEN RETURN
43610 IF YN$="Y" THEN ZIP$="04022076":GOSUB 52000:DISROW=4:LOCATE 23,2:PRINT WIPE$;:RETURN
43620 GOTO 200
44000 RETURN
44499 '********** PRINT OUT ALL PLAYERS **********
44500 LNUMBER=0:PAGE.NUMBER=1:GOSUB 42000:IF CP$="C" THEN START.SEARCH=NUMBER.OF.PLAYER:FINISH.SEARCH=1:SEARCH.INCREMENT=-1
44505 IF CP$="P" THEN START.SEARCH=1:FINISH.SEARCH=NUMBER.OF.PLAYER:SEARCH.INCREMENT=1
44510 FOR K=START.SEARCH TO FINISH.SEARCH STEP SEARCH.INCREMENT
44520 IF CP$="C" THEN ENTRY.LOC=INSTR(CURRENT.INDEX$(K),"/")+2:THIS.NUMBER=VAL(MID$(CURRENT.INDEX$(K),ENTRY.LOC))
44525 IF CP$="P" THEN ENTRY.LOC=INSTR(PLAYER.INDEX$(K),"/")+2:THIS.NUMBER=VAL(MID$(PLAYER.INDEX$(K),ENTRY.LOC))
44530 GOSUB 31000 ' GET THE ENTRY
44540 GOSUB 42100:LNUMBER=LNUMBER+1 'PRINT STATS LINE AND INCREMENT COUNT
44550 IF LNUMBER=51 THEN LPRINT CHR$(12):PAGE.NUMBER=PAGE.NUMBER+1:GOSUB 42000:LINE.NUMBER=1
44560 NEXT K:LPRINT CHR$(12)
44570 LOCATE 23,2:PRINT WIPE$;:TITLE.LINE$="THAT'S ALL, FOLKS! MORE REPORTS? (Y/N)":GOSUB 40100:LOCATE 23,THISLOC-1:PRINT TITLE.LINE$;:GOSUB 41300
44580 IF YN$="Y" THEN 7000 ELSE 200
44999 '********** CATCH ERROR AND GO BACK TO MENU **********
45000 CLOSE#1:CLS:TITLE.LINE$="SORRY, THERE HAS BEEN AN ERROR. HIT ANY KEY FOR MENU":GOSUB 40100:LOCATE 10,THISLOC-1:PRINT TITLE.LINE$;
45010 IF INKEY$="" THEN 45010 ELSE RESUME 200
50000 DATA "1. LOAD A FILE","2. CREATE A NEW FILE","3. UPDATE A PLAYER", "4. TEAM ROSTER", "5. ADD A PLAYER", "6. PLAYER REPORTS","7. TEAM REPORTS", "8. SORT YOUR STATS","9. QUIT"
51000 REM ************* ZIPCLEAR INPUT PARAMETERS ***************************
51050 DATA&h8B55
51060 DATA&hB8EC
51070 DATA&H0600
51080 DATA&H07B7
51090 DATA&H768B
51100 DATA&H8A0C
51110 DATA&H8B2C
51120 DATA&HA76
51130 DATA&HC8A
51140 DATA&H768B
51150 DATA&H8A08
51160 DATA&H8B34
51170 DATA&H676
51180 DATA&H148A
51190 DATA&HCDFE
51200 DATA&HC9FE
51210 DATA&HCEFE
51220 DATA&HCAFE
51230 DATA&H10CD
51240 DATA&HCA5D
51250 DATA&H8
51260 DATA&H0
51999 '********** CLEAR SELECTED SCREEN AREA **********